package com.cy.pj.common.service;

import com.cy.pj.common.cache.Cache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class CacheService {

    private Cache cache;

//    @Autowired
//    public void setCache(Cache cache0) {
//        this.cache = cache;
//    }

    public CacheService(){}

    @Autowired
    public CacheService(@Qualifier("softCache") Cache cache){
        this.cache=cache;
    }

    public Cache getCache() {
        return cache;
    }

    //    public CacheService(){}
//    void CacheService(Cache cache){}
//    void CacheService(SoftCache softCache){}
//    void CacheService(WeakCache weakCache){}
}
